package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YgabcBookInfoMapper;
import com.ruoyi.system.domain.YgabcBookInfo;
import com.ruoyi.system.service.IYgabcBookInfoService;

/**
 * ygabc_book_infoService业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-15
 */
@Service
public class YgabcBookInfoServiceImpl implements IYgabcBookInfoService 
{
    @Autowired
    private YgabcBookInfoMapper ygabcBookInfoMapper;

    /**
     * 查询ygabc_book_info
     * 
     * @param id ygabc_book_info主键
     * @return ygabc_book_info
     */
    @Override
    public YgabcBookInfo selectYgabcBookInfoById(String id)
    {
        return ygabcBookInfoMapper.selectYgabcBookInfoById(id);
    }

    /**
     * 查询ygabc_book_info列表
     * 
     * @param ygabcBookInfo ygabc_book_info
     * @return ygabc_book_info
     */
    @Override
    public List<YgabcBookInfo> selectYgabcBookInfoList(YgabcBookInfo ygabcBookInfo)
    {
        return ygabcBookInfoMapper.selectYgabcBookInfoList(ygabcBookInfo);
    }

    /**
     * 新增ygabc_book_info
     * 
     * @param ygabcBookInfo ygabc_book_info
     * @return 结果
     */
    @Override
    public int insertYgabcBookInfo(YgabcBookInfo ygabcBookInfo)
    {
        return ygabcBookInfoMapper.insertYgabcBookInfo(ygabcBookInfo);
    }

    /**
     * 修改ygabc_book_info
     * 
     * @param ygabcBookInfo ygabc_book_info
     * @return 结果
     */
    @Override
    public int updateYgabcBookInfo(YgabcBookInfo ygabcBookInfo)
    {
        return ygabcBookInfoMapper.updateYgabcBookInfo(ygabcBookInfo);
    }

    /**
     * 批量删除ygabc_book_info
     * 
     * @param ids 需要删除的ygabc_book_info主键
     * @return 结果
     */
    @Override
    public int deleteYgabcBookInfoByIds(String[] ids)
    {
        return ygabcBookInfoMapper.deleteYgabcBookInfoByIds(ids);
    }

    /**
     * 删除ygabc_book_info信息
     * 
     * @param id ygabc_book_info主键
     * @return 结果
     */
    @Override
    public int deleteYgabcBookInfoById(String id)
    {
        return ygabcBookInfoMapper.deleteYgabcBookInfoById(id);
    }
}
